package com.kuns.subject.application.controller;


import com.kuns.subject.infra.basic.entity.SubjectCategory;
import com.kuns.subject.infra.basic.service.SubjectCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private SubjectCategoryService subjectCategoryService;

    @GetMapping("test")
    public String test() {
        SubjectCategory subjectCategory = subjectCategoryService.queryById(1L);
        return subjectCategory.getCategoryName();
    }

}
